package com.liuyu2783.redislock.service.impl;

import com.liuyu2783.redislock.service.UserService;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.stereotype.Service;

/**
 * com.liuyu2783.redislock.service
 *
 * @author liuyu07
 * @date 2019-6-28
 */
@Service
public class UserServiceImpl implements UserService {

    private static final Logger logger = LoggerFactory.getLogger(UserServiceImpl.class);

    @Override
    public void getUser() {
        try {
            logger.debug("模拟服务耗时1s");
            Thread.sleep(1000);
        } catch (InterruptedException e) {
            e.printStackTrace();
        }
    }
}
